// const webpackES6Config = require('./webpack.config.js');
// let webpackES5Config = Object.assign({}, webpackES6Config)
// webpackES5Config.entry = __dirname + "/out-es5/index.js"//已多次提及的唯一入口文件
// webpackES5Config.output = Object.assign({}, webpackES5Config.output)
// webpackES5Config.output.filename = "index.es5.js"


module.exports = function (grunt) {

    require('load-grunt-tasks')(grunt);

    grunt.initConfig({
        copy: {
            out: {
                files: [
                    { expand: true, cwd: "src/client", src: ["**/*.html", "**/*.less", "lib/**/*.*", "**/*.css", "**/*.png"], dest: "./out/client" }
                ]
            }
        },
        webpack: {
            // es6: webpackES6Config,
            // es5: webpackES5Config,
        },
    });

  
}

///Volumes/data/projects/shop/out/es5/lib/polyfill.js